<link rel="stylesheet" href="<?php echo base_url('assets/js/tooltip/tooltip.css');?>" type="text/css" media="screen" />
<script type="text/javascript" src="<?php echo base_url('assets/js/tooltip/tooltip.js');?>"></script>

<div class="width680">
    <?php echo $this->load->view('_partials/filterbox')?>
    <div class="NewsList">
        <div class="divContent clear">
            <?php
                if(count($records)){
                    foreach($records as $key=>$item) {
                        if($category_id==6){
            ?>
                            <div class="listRow <?php if($key%2==1){ echo "even"; } ?>">
                                <div class="itemTitle" onmouseout="hidetip();" onmouseover='showtip("<?php echo word_limiter(strip_html_tags($item['content']), 50);  ?>");'>
                                    <i></i>
                                    <div><a href="<?php echo get_post_detail_url($item['id'],$item['name']) ?>"><?php echo $item['name']; ?></a></div>
                                </div>
                                <div class="itemProvinder"><?php echo getLabelProvinder($item['provinder_id'],true) ?></div>
                                <div class="itemDate"><?php echo date('d.m.Y',$item['modifyTime']); ?></div>
                                <div class="itemHit"><?php echo $item['hit']; ?></div>
<!--                                <div class="itemView">--><?php //?><!--</div>-->
                            </div>
                    <?php }else{ ?>
                            <div class="listItem">
                                <div class="thumb110 left"><a href="<?php echo get_post_detail_url($item['id'],$item['name']); ?>"><img src='<?php echo $item['image'] ?>' style="width: 90px;" /></a></div>
                                <div class="itemcontent">
                                    <h3 class="name title"><a href="<?php echo get_post_detail_url($item['id'],$item['name']); ?>"><?php echo ucfirst($item['name']); ?></a></h3>
                                    <div class="userProductList">
                                        <?php echo getByShop($item['user_id']) ?> - <span class="datetime"><?php echo getLabelProvinder($item['provinder_id'],true); ?> - <?php echo getRemainingTime($item['modifyTime']); ?></span>
                                    </div>
                                </div>
                                <div class="box-price">
                                    <div class="price">
                                        <?php if(!empty($item['promotion'])){ ?>
                                        <div class="price priceColor" align="right">
                                            <strong title="Giá bán"><?php echo number_format($item['promotion'],0,'.','.') ?>  <?php echo img('assets/default/images/ico-vnd.gif') ?></strong>
                                        </div>
                                        <?php }  if(!empty($item['price'])){ ?>
                                        <div class="oldPrice" title="Giá thị trường"><?php echo number_format($item['price'],0,'.','.') ?><?php echo img('assets/default/images/ico-vnd-price-out.gif') ?> </div>
                                        <?php } ?>
                                    </div>
                                    <div class="box-city" title="Xem / Phản hồi">
                                        <?php //echo $item['hit'] ?>
                                    </div>
                                </div>
                            </div>
                    <?php } ?>

                 <?php } ?>
                <div class="divFooter clear">
                    <?php echo $pagination;?>
                </div>
            <?php }else {
                echo "Chưa có dư liệu.";
            } ?>
        </div>
    </div>
</div>
<?php echo $this->load->view('_partials/sidebar');?>


